using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using GNet.DataBase;
namespace GNetDesktop
{
    public partial class frmInfomationConfer : Form
    {
        private string strAccountID;

        public frmInfomationConfer(string AccountID)
        {
            
            InitializeComponent();

            strAccountID = AccountID;
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            cmdOK.Enabled = checkBox1.Checked;
        }

        private void cmdOK_Click(object sender, EventArgs e)
        {
            this.Close();
            frmInfoMationReg frm = new frmInfoMationReg(strAccountID);
            frm.ShowDialog();
        }

        private void frmInfomationConfer_Shown(object sender, EventArgs e)
        {
#if (!DEBUG)
            try
            {
#endif
            DataComponent dbGnetRoot = new DataComponent(true);


            string strSQL = "SELECT  confer FROM PT_ACCOUNTINFO where AccountID='" + strAccountID + "'";
            DataTable dt = dbGnetRoot.GetDataTable(strSQL, true);
            if (dt.Rows.Count > 0)
            {
                txtServiceIntro.Text = dt.Rows[0]["confer"].ToString();
            }
            dt.Dispose();

            dbGnetRoot.Dispose();

#if (!DEBUG)
            }
            catch
            {
                
            }
#endif
        }

        private void cmdCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void frmInfomationConfer_Load(object sender, EventArgs e)
        {

        }
    }
}